package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.PortraitPictures;
import com.chaoyi.model.PortraitPicturesSet;

public interface PortraitPicturesMapper {
	
	List<PortraitPictures> findList(@Param("pageStat")String offset,@Param("pageStop")String limit,@Param("type")String type);
	
	List<PortraitPictures> findListPic(@Param("pageStat")String offset,@Param("pageStop")String limit,@Param("type")String type
								,@Param("picType")String picType);
	
	int findCount(@Param("type")String type);
	
	int addPicturesSave(@Param("entity")PortraitPictures entity);
	
	PortraitPictures findPicturesOne(@Param("id")int id);

	int alertPicturesSave(@Param("entity")PortraitPictures entity);

	int deletePictures(@Param("id")int id);
	
	int deletePicturesSetParentId(@Param("parentId")int parentId);
	
	int deletePicturesSetId(@Param("id")int id);
	
	int addPicturesSetSave(@Param("entity")PortraitPicturesSet entity);
	
	List<PortraitPicturesSet> picturesSetList(int parentId);
	
//	cdn迁移使用
	List<PortraitPicturesSet> findpciSetAll();
	
	int alertPicturesSetSave(@Param("entity")PortraitPicturesSet entity);
	
}
